var reward = {
    getList: function(data, success, error) {
        G.get('api/reward', data, success, error)
    },
    getMyReward: function(data, success, error) {
        G.get('api/reward/my', data, success, error)
    },
    add: function(data, success, error) {
        G.put('api/reward', data, success, error)
    },
    findOne: function(id, data, success, error) {
        G.get('api/reward/' + id, data, success, error)
    },
    update: function(id, data, success, error) {
        G.post('api/reward/' + id, data, success, error)
    },
    finish: function(rewardId, rewardPKId, data, success, error) {
        G.put('api/reward/' + rewardId + '/' + rewardPKId, data, success, error)
    },
    pay: function(id, data, success, error) {
        G.post('api/reward/' + id + '/toPay', data, success, error)
    },
    joinPK: function(id, data, success, error){
        G.put('api/rewardPK/' + id, data, success, error)
    },
    getPK: function(id, data, success, error){
        G.get('api/rewardPK/' + id, data, success, error)
    },
    setUps: function(id, data, success, error){
        G.put('api/rewardPKThumbUp/' + id, data, success, error)
    },
}